package com.borened.common.core.base;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 分页查询对象 Query基类
 *
 * @author Borened
 */
@Data
public class BasePageQuery extends BaseQuery {

    public static final String SORT_ASC = "asc";
    public static final String SORT_DESC = "desc";
    public static final String SORT_COL = "create_time";

    @ApiModelProperty(value = "页码", example = "1")
    private int pageNum = 1;
    @ApiModelProperty(value = "每页数量", example = "10")
    private int pageSize = 10;

    @ApiModelProperty(value = "排序列名(table列属性名，例如：userName)")
    private String sortCol;

    @ApiModelProperty(value = "排序方式(asc/desc)")
    private String sort;

}
